/**
 * Created by zhaojiuyang1 on 15/5/4.
 */
var userHelper = require(__dirname+"/../lib/userHelper.js");
userHelper.init();
var checkMobileExistTester = function(){
    console.log("checkMobileTester");
    userHelper.checkMobileExist({mobile:"18611921015"}).then(function(result){
        console.log(result);
    });
};
//checkMobileExistTester();
var execMathLongTester = function(){
    userHelper.execMathLong(1).then(function(result){
        console.log(result);
    })
};
//execMathLongTester();
var getGuideIdTester = function(){
    userHelper.getGuideId().then(function(r){
        console.log(r);
    });

};
//getGuideIdTester();
var getUserIdTester = function(){
    userHelper.getUserId().then(function(r){
        console.log(r);
    });

};
//getUserIdTester();
var checkInvitationTester = function(){
    userHelper.checkInvitation({invitationCode:"d8611921015"}).then(function(r){
        console.log(r);
    })
};
//checkInvitationTester();
var checkIdentifyingCodeTester = function(){
    userHelper.checkIdentifyingCode({mobile:15801081787,identifyCode:653271}).then(function(r){
        console.log(r);
    })
};
//checkIdentifyingCodeTester();
var insertUserTester = function(){
    userHelper.insertUser({mobile: '15801081787',
        invitationCode: 'd8611921015',
        identifyCode: '702297' }).then(function(r){
        console.log(r);
    })
};
insertUserTester();
